package 水仙花;

/**
 * @author Administrator
 * @ClassName Daffodil
 * @TIME 星期五 2020/12/25
 */
public class Daffodil extends Thread {
    @Override
    public void run() {
        int min = 100;
        int max = 999;
        for (; min <= max; min++) {
            int ge = min % 10;
            int shi = min / 10 % 10;
            int bai = min / 100 % 10;
            if ((bai * bai * bai + ge * ge * ge + shi * shi * shi) == min){
                System.out.println(min);
            }
        }
    }

    public static void main(String[] args) {
       Daffodil d = new Daffodil();
       d.start();
    }
}
